package com.biz.primus.ms.search.vo;


import org.elasticsearch.search.sort.SortOrder;

import java.io.Serializable;

/**
 * 商品排序Vo
 *
 * @author david-liu
 * @date 2017年02月17日
 * @reviewer
 */
public class ProductSortVo implements Serializable {
    private static final long serialVersionUID = 5846141645125958427L;

    /**
     * 排序文档字段名
     */
    private String sortFieldName;

    /**
     * 排序方法(升序/降序)
     */
    private SortOrder sortOrder;


    public String getSortFieldName() {
        return sortFieldName;
    }

    public void setSortFieldName(String sortFieldName) {
        this.sortFieldName = sortFieldName;
    }

    public SortOrder getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(SortOrder sortOrder) {
        this.sortOrder = sortOrder;
    }

    public ProductSortVo() {
    }

    public ProductSortVo(String sortFieldName, SortOrder sortOrder) {
        this.sortFieldName = sortFieldName;
        this.sortOrder = sortOrder;
    }
}
